import DebounceHelper from '@/core/utils/debounce/DebounceHelper'

class debounceUtils {
	define = <TP, TR>(handler: (params: TP[]) => Promise<TR>, wait: number = 50): ((params: TP) => Promise<TR>) => {
		return new DebounceHelper({ handler: handler, wait: wait }).getDebounceDefine()
	}
}

export default new debounceUtils()
